package net.schastny.shopmanager.domain;

import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;


import org.hibernate.annotations.IndexColumn;

@Entity
@Table(name = "contacts")
public class Contact {

    @Id
    @Column(name = "contact_id")
    @GeneratedValue
    private Integer contactId;
    
    @NotEmpty //make sure name is not empty
    @Column(name = "contact_nickname")
    private String contactNickName;

    @Column(name = "contact_firstname")
    private String contactFirstName;

    @Column(name = "contact_lastname")
    private String contactLastName;
    
    @Column(name = "contact_telephone")
    private String contactTelephone;
 
    @Column(name = "contact_email")
    private String contactEmail;
    
    @Column(name = "contact_warehouse")
    private String contactWarehouse;
    
    @Column(name = "contact_warehouseNum")
    private String contactWarehouseNum;

    @Column(name = "contact_balance")
    private Float contactBalance;    
    
    @Column(name = "contact_procent")
    private Integer contactProcent;
    
    @Column(name = "contact_description")
    private String contactDescription; 
    
    @Column(name = "contact_createduser")
    private String  contactCreatedUser;
    
    @Column(name = "contact_created")
    private String contactCreated;    

   

  
	public String getContactWarehouseNum() {
		return contactWarehouseNum;
	}



	public void setContactWarehouseNum(String contactWarehouseNum) {
		this.contactWarehouseNum = contactWarehouseNum;
	}



	public Integer getContactProcent() {
		return contactProcent;
	}



	public void setContactProcent(Integer contactProcent) {
		this.contactProcent = contactProcent;
	}



	public String getContactDescription() {
		return contactDescription;
	}



	public void setContactDescription(String contactDescription) {
		this.contactDescription = contactDescription;
	}



	public Integer getContactId() {
		return contactId;
	}



	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	public String getContactNickName() {
		return contactNickName;
	}

	public void setContactNickName(String contactNickName) {
		this.contactNickName = contactNickName;
	}



	public String getContactFirstName() {
		return contactFirstName;
	}



	public void setContactFirstName(String contactFirstName) {
		this.contactFirstName = contactFirstName;
	}



	public String getContactLastName() {
		return contactLastName;
	}



	public void setContactLastName(String contactLastName) {
		this.contactLastName = contactLastName;
	}



	public String getContactTelephone() {
		return contactTelephone;
	}



	public void setContactTelephone(String contactTelephone) {
		this.contactTelephone = contactTelephone;
	}



	public String getContactEmail() {
		return contactEmail;
	}



	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}



	public String getContactWarehouse() {
		return contactWarehouse;
	}



	public void setContactWarehouse(String contactWarehouse) {
		this.contactWarehouse = contactWarehouse;
	}



	public Float getContactBalance() {
		return contactBalance;
	}



	public void setContactBalance(Float contactBalance) {
		this.contactBalance = contactBalance;
	}



	public String getContactCreatedUser() {
		return contactCreatedUser;
	}



	public void setContactCreatedUser(String contactCreatedUser) {
		this.contactCreatedUser = contactCreatedUser;
	}



	public String getContactCreated() {
		return contactCreated;
	}



	public void setContactCreated(String contactCreated) {
		this.contactCreated = contactCreated;
	}



	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "Contact::  FirstName="+this.getContactFirstName()+" LastName = "+this.getContactLastName()+" NickName = "+ this.getContactNickName()+
				" Telephone = "+this.getContactTelephone()+ " Email = "+this.getContactEmail()+ " Warehouse = "+this.getContactWarehouse();
	}
    
}